Skip to content

feat(app): disallow duplicate attachments - #39464

Merged
Brendonovich merged 1 commit into
anomalyco:devfrom
arvsrn:disallow-duplicate-attachments
Jul 30, 2026
Merged

feat(app): disallow duplicate attachments#39464
Brendonovich merged 1 commit into
anomalyco:devfrom
arvsrn:disallow-duplicate-attachments

Conversation

@arvsrn

@arvsrn arvsrn commented Jul 29, 2026

Copy link
Copy Markdown
Member

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

In v2 UI, disallows uploading the same file multiple times.

  • Desktop file: same path + same content → duplicate.
  • Browser file: same filename + same content → duplicate.
  • Native desktop clipboard image: same content → duplicate.
  • Same path/name, changed content: allowed.
  • Same content, different path/name: allowed.
  • Pasted text: never deduplicated.
  • Duplicate detected: file isn’t added; toast is triggered.

How did you verify your code works?

  • Ran the app locally and verified the updated UI manually
  • Tests pass locally (bun run typecheck)

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@arvsrn
arvsrn requested review from Brendonovich and Hona as code owners July 29, 2026 06:33
@Brendonovich
Brendonovich merged commit eca5e68 into anomalyco:dev Jul 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants